{template newheader}
<div id="wrapper">

	<div class="main topic">

		<h1>话题</h1>

		<div class="white co5">

			<ul class="topic_l">
<!--{if arrTopics}-->
{loop $arrTopics $key $item}
					<li>
						<a href="{SITE_URL}{tsurl('user','space',array(userid=>$item[user][userid]))}" class="avatar">
							<img src="{$item[user][face]}" alt="{$item[user][username]}" />
						</a>
						<p class="title"><span class="fr r_num">{$item[count_comment]}</span>
							<a href="{SITE_URL}{tsurl('talk','talk',array('talkid'=>$item[talkid]))}">{$item[title]}</a>
						</p>
						<p class="p_date">发布于{php echo date('Y-m-d H:i',$item[addtime])}&nbsp;&nbsp;
								最后回复于{php echo date('Y-m-d H:i',$item[uptime])}

						</p>

					</li>
					{/loop}
					<!--{/if}-->
			</ul>

			

			<div class="pagenav">
			{$pageUrl}
			</div>

		</div>

	</div>



	<div class="sidebar">

		<div class="post_t"><a href="{SITE_URL}{tsurl('talk','new_talk')}" class="btn">发起新话题</a></div>

		<div class="white">

			<h2>热门话题</h2>

			<ul class="new_t">
<!--{if $arrTopic}-->
{loop $arrTopic $key $item}
				<li><a href="{SITE_URL}{tsurl('talk','talk',array('talkid'=>$item[talkid]))}">{$item[title]}</a><br>发布于  <span name="formatdate">2011-12-08 16:26:37</span></li>			
{/loop}
<!--{/if}-->

			</ul>

		</div>

	</div>

	<div class="clear"></div>



</div>


{template footer}